//
//  KABCosplayTCell.h
//  kabu
//
//  Created by XiangDongMBP on 2017/2/3.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KABCosplayTCell;
@protocol KABCosplayTCellDelegate <NSObject>
@optional
- (void)kABCosplayTCell:(KABCosplayTCell *)cell portraitImgViewTapped:(UIImageView *)imgView;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell pullDownBtnTapped:(UIButton *)btn;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell praiseBtnTapped:(UIButton *)btn;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell commentBtnTapped:(UIButton *)btn;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell collectBtnTapped:(UIButton *)btn;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell deleteBtnTapped:(UIButton *)btn;
- (void)kABCosplayTCell:(KABCosplayTCell *)cell linkTapped:(NSURL *)url;
@end

@class KABCosListItem;
@class TTTAttributedLabel;
@interface KABCosplayTCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIImageView *portraitImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *locationLabel;
@property (weak, nonatomic) IBOutlet UIButton *pullDownBtn;
@property (weak, nonatomic) IBOutlet UIImageView *activityImgView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentLabelTopConstraint;

@property (weak, nonatomic) IBOutlet TTTAttributedLabel *contentLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentLabelBottomContraint;

@property (weak, nonatomic) IBOutlet UIImageView *contentImgView;
@property (weak, nonatomic) IBOutlet UIButton *praiseBtn;
@property (weak, nonatomic) IBOutlet UIButton *commentBtn;
@property (weak, nonatomic) IBOutlet UIButton *collectBtn;
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;

@property (weak, nonatomic) id<KABCosplayTCellDelegate>delegate;

- (void)configViewWithCosplayItem:(KABCosListItem *)item showDeleteBtn:(BOOL)show showPullDownBtn:(BOOL)showPull;

@end
